<%@page import="beans.BeanUsuario"%>
<%@page contentType="text/html" pageEncoding="iso-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">

<html>
  <head>
    <title>Agenda de Compromissos</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >
    <link rel="stylesheet" href="estiloHome.css" type="text/css" >    
    <script type="text/javascript" src="validaEntradas.js"></script>  
  </head>
  <body>
    <div id="conteudo">
      <div>
        <%@include file="cabecalho.jsp" %>
      </div>
      <div id="barraMenuLateral" >
        <h1>Menu</h1>
        <ul class="menuLateral">
            <li><a href="ServletLogin?pagina=home.jsp">Home<br><br></a></li>
          <li><a href="ServletLogin?pagina=todosCompromissos.jsp">Todos <br> Compromissos</a></li>
          <li id="atual"><a href="ServletLogin?pagina=adicionaCompromisso.jsp">Agendar <br> Compromissos</a></li>
          <li><a href="ServletLogoff">Sair</a></li>
        </ul>
        <div>
          <%@include file="ultimoAcesso.jsp" %>
        </div>
      </div>
      <div id="infoGeral"><a name="infoGeral"></a>      
        <h1>Agendamento de Compromisso de <%=usr.getNome()%></h1>
        <p id="avisoSemBarra">
          Preencha os campos abaixo e clique em <b>Enviar dados</b>.
        </p>
        <form action="verificaHorarios.jsp" method="post">
          <p id="semBarra">
            <label>T&iacute;tulo</label>
            <input name="titulo" type="text"> 
            <label for="tipo">Tipo:</label>
            <select name= "tipo" id="tipo">															
              <option value = "0">Escolha o tipo aqui</option>
              <option value = "1" >Reuni&atilde;o</option>
              <option value = "2">Palestra</option>	
              <option value = "3">Encontro</option>	
              <option value = "4">Confer&ecirc;ncia</option>	
              <option value = "5">Outros</option>										
            </select>
            <label for="data">Data:</label>
            <input name="data" type="text" OnkeyPress="return soNumero(event)"  
                   OnKeyUp="mascara_data(this.value)"  maxlength="10">
            <label for="hora">Hora:</label>
            <input type="text" name="hora"  OnkeyPress="return soNumero(event)" 
                   OnKeyUp="mascara_hora(this.value)" maxlength="5">
            <label for="local">Local:</label>
            <input type="text" name="local">
            <label for="duracao">Dura&ccedil;&atilde;o:</label>
            <input type="text" name="duracao" OnkeyPress="return soNumero(event)" 
                   OnKeyUp="mascara_duracao(this.value)" On maxlength="5">
            <label>Observa&ccedil;&atilde;o</label>
            <textarea name="observacao" rows="3" cols="60"></textarea>
            <br >
            <input class="btEnviar" type="submit" value="Enviar dados" >
          </p>
        </form>
      </div>
    </div>
  </body>
</html>